// Copyright (C) 2005-2008 Jae Stutzman (jaebird@gmail.com)
//
// This file is part of Podducer.
//
// Podducer is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Podducer is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Podducer.  If not, see <http://www.gnu.org/licenses/>.

using System;

namespace Podducer
{
	public delegate void ControllerHandler();
	public delegate void VuMeasureHandler(int val);

	public enum RecordMode
	{
		Stopped,
		Paused,
		Recording,
		Stopping
	}
	
	public interface IRecordController : IDisposable
	{
		event ControllerHandler RecordOccured;
		event ControllerHandler PauseOccured;
		event ControllerHandler StopOccured;
		event VuMeasureHandler VuMeasureOccured;

		string Filename	{ get; }
		string DestinationDirectory	{ get; }
		RecordMode RecordMode { get; }

		bool StartProcess(out string errorString);
		bool StartRecord(out string errorString);
		void StopRecording(); // default is no wait
		void StopRecording(bool waitForStop);
		void PauseOrResume();
		void RefreshConfiguration();
		string CreateFilename();
	}
}
